# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-passwordsafe
pkgver=6.5
pkgrel=1
pkgdesc="password manager for GNOME"
url="https://gitlab.gnome.org/World/secrets"
# s390x and riscv64 blocked by rust -> libhandy1
arch="noarch !s390x !riscv64"
license="GPL-3.0-only"
depends="
	libhandy1
	py3-cairo
	py3-gobject3
	py3-keepass>=4.0.1
	py3-libpwquality
	py3-otp>=2.4.0
	py3-pycryptodomex
	python3
	"
makedepends="
	gobject-introspection-dev
	gtk4.0-dev
	libadwaita-dev
	libpwquality-dev
	meson
	"
checkdepends="appstream-glib desktop-file-utils"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/secrets/-/archive/${pkgver/_/.}/secrets-${pkgver/_/.}.tar.bz2"
builddir="$srcdir/secrets-${pkgver/_/.}"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
fe23d8d0750c3997f2f471fa799d1a94276b8b51e0e09586c46da2899c0c0ff44d5a001baf2ca31962906c60ae9fd939f70c35f67fecf8ac141a1f72c2df320e  secrets-6.5.tar.bz2
"
